package com.xhwl.logistics.service.impl;

import com.xhwl.logistics.bo.input.PayFeeInfoBO;
import com.xhwl.logistics.dao.VehcPayRecordDao;
import com.xhwl.logistics.service.IPayFeeReportedService;
import com.xhwl.logistics.service.cent.QueryDeviceService;
import org.springframework.beans.factory.annotation.Autowired;

//@Service
public class PayFeeReportedServiceImpl implements IPayFeeReportedService {

    @Autowired
    private QueryDeviceService queryDeviceService;

    @Autowired
    private VehcPayRecordDao vehcPayRecordDao;

    @Override
    public void postPayFeeInfo(PayFeeInfoBO payFeeInfoBO) {
        Integer projectId = queryDeviceService.queryProjectIdFromIntegratedConfiguration(payFeeInfoBO.getParkId());

        vehcPayRecordDao.insert(payFeeInfoBO.toVehcPayRecord(projectId));
    }
}
